.class public Lcom/teewoo/app/bus/ui/SearchActivity;
.super Lcom/teewoo/app/bus/inface/BaseActivity;
.source "SearchActivity.java"


# static fields
.field public static final LOAD_LONGYAN_DATA:I = 0xd

.field public static final LOAD_OTHER_DATA:I = 0xe

.field public static final LOAD_QUANZHOU_DATA:I = 0xc

.field public static final LOAD_XIAMEN_DATA:I = 0xb

.field public static final SEARCH_CHANGE_ID:I = 0x3

.field public static final SEARCH_LINE_ID:I = 0x1

.field public static final SEARCH_STATION_ID:I = 0x2

.field public static final TAB1_ID:Ljava/lang/String; = "tab1"

.field public static final TAB1_IMAGE_FOCUS:I = 0x7f020008

.field public static final TAB1_IMAGE_NORMAL:I = 0x7f020009

.field public static final TAB1_NAME:Ljava/lang/String; = "\u7ebf\u8def\u641c\u7d22"

.field public static final TAB2_ID:Ljava/lang/String; = "tab2"

.field public static final TAB2_IMAGE_FOCUS:I = 0x7f02004c

.field public static final TAB2_IMAGE_NORMAL:I = 0x7f02004d

.field public static final TAB2_NAME:Ljava/lang/String; = "\u7ad9\u70b9\u641c\u7d22"

.field public static final TAB3_ID:Ljava/lang/String; = "tab3"

.field public static final TAB3_IMAGE_FOCUS:I = 0x7f02000a

.field public static final TAB3_IMAGE_NORMAL:I = 0x7f02000b

.field public static final TAB3_NAME:Ljava/lang/String; = "\u6362\u4e58\u641c\u7d22"

.field private static lineAutoAdapter:Landroid/widget/ArrayAdapter;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/widget/ArrayAdapter",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private buslineText:Landroid/widget/AutoCompleteTextView;

.field private changeAdapter:Lcom/teewoo/app/bus/ui/adapter/ChangeHistoryAdapter;

.field private changeDataSet:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/history/ChangeHistory;",
            ">;"
        }
    .end annotation
.end field

.field private changeHisClear:Landroid/widget/Button;

.field private changeHistoryListView:Landroid/widget/ListView;

.field private changeHistoryManager:Lcom/teewoo/app/bus/manager/history/ChangeHistoryManager;

.field private changeSearchButton:Landroid/widget/Button;

.field private clickListener:Landroid/view/View$OnClickListener;

.field private fromStationId:I

.field private fromStationName:Ljava/lang/String;

.field private fromStationText:Landroid/widget/AutoCompleteTextView;

.field private isSupport:Z

.field private lineAdapter:Lcom/teewoo/app/bus/ui/adapter/LineHistoryAdapter;

.field private lineDataSet:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/history/LineHistory;",
            ">;"
        }
    .end annotation
.end field

.field private lineHisClear:Landroid/widget/Button;

.field private lineHistoryManager:Lcom/teewoo/app/bus/manager/history/LineHistoryManager;

.field private lineHistroyListView:Landroid/widget/ListView;

.field private lineName:Ljava/lang/String;

.field private lineSearchButton:Landroid/widget/Button;

.field private lineStrArray:[Ljava/lang/String;

.field private progressDlg:Landroid/app/ProgressDialog;

.field private searchTabHost:Landroid/widget/TabHost;

.field private staAdapter:Lcom/teewoo/app/bus/ui/adapter/StationHistoryAdapter;

.field private staDataSet:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/history/StationHistory;",
            ">;"
        }
    .end annotation
.end field

.field private stationAutoAdapter:Landroid/widget/ArrayAdapter;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/widget/ArrayAdapter",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private stationHisClear:Landroid/widget/Button;

.field private stationHistoryListView:Landroid/widget/ListView;

.field private stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

.field private stationId:I

.field private stationInfoList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/autocomplete/AutoItem;",
            ">;"
        }
    .end annotation
.end field

.field private stationName:Ljava/lang/String;

.field private stationSearchButton:Landroid/widget/Button;

.field private stationStrArray:[Ljava/lang/String;

.field private stationText:Landroid/widget/AutoCompleteTextView;

.field private toStationId:I

.field private toStationName:Ljava/lang/String;

.field private toStationText:Landroid/widget/AutoCompleteTextView;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, -0x1

    const/4 v0, 0x0

    .line 48
    invoke-direct {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;-><init>()V

    .line 82
    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineName:Ljava/lang/String;

    .line 83
    iput v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationId:I

    .line 84
    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationName:Ljava/lang/String;

    .line 85
    iput v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->fromStationId:I

    .line 86
    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->fromStationName:Ljava/lang/String;

    .line 87
    iput v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->toStationId:I

    .line 88
    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->toStationName:Ljava/lang/String;

    .line 122
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->isSupport:Z

    .line 322
    new-instance v0, Lcom/teewoo/app/bus/ui/SearchActivity$1;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/SearchActivity$1;-><init>(Lcom/teewoo/app/bus/ui/SearchActivity;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->clickListener:Landroid/view/View$OnClickListener;

    .line 48
    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/SearchActivity;)Z
    .locals 1
    .parameter

    .prologue
    .line 122
    iget-boolean v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->isSupport:Z

    return v0
.end method

.method static synthetic access$1(Lcom/teewoo/app/bus/ui/SearchActivity;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$10(Lcom/teewoo/app/bus/ui/SearchActivity;Ljava/lang/String;Ljava/util/List;)I
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 533
    invoke-direct {p0, p1, p2}, Lcom/teewoo/app/bus/ui/SearchActivity;->getIdfromLocal(Ljava/lang/String;Ljava/util/List;)I

    move-result v0

    return v0
.end method

.method static synthetic access$11(Lcom/teewoo/app/bus/ui/SearchActivity;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 83
    iput p1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationId:I

    return-void
.end method

.method static synthetic access$12(Lcom/teewoo/app/bus/ui/SearchActivity;)I
    .locals 1
    .parameter

    .prologue
    .line 83
    iget v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationId:I

    return v0
.end method

.method static synthetic access$13(Lcom/teewoo/app/bus/ui/SearchActivity;)Landroid/widget/AutoCompleteTextView;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->fromStationText:Landroid/widget/AutoCompleteTextView;

    return-object v0
.end method

.method static synthetic access$14(Lcom/teewoo/app/bus/ui/SearchActivity;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 86
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->fromStationName:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$15(Lcom/teewoo/app/bus/ui/SearchActivity;)Landroid/widget/AutoCompleteTextView;
    .locals 1
    .parameter

    .prologue
    .line 58
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->toStationText:Landroid/widget/AutoCompleteTextView;

    return-object v0
.end method

.method static synthetic access$16(Lcom/teewoo/app/bus/ui/SearchActivity;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 88
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->toStationName:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$17(Lcom/teewoo/app/bus/ui/SearchActivity;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 86
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->fromStationName:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$18(Lcom/teewoo/app/bus/ui/SearchActivity;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 88
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->toStationName:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$19(Lcom/teewoo/app/bus/ui/SearchActivity;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 85
    iput p1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->fromStationId:I

    return-void
.end method

.method static synthetic access$2(Lcom/teewoo/app/bus/ui/SearchActivity;)Landroid/widget/AutoCompleteTextView;
    .locals 1
    .parameter

    .prologue
    .line 51
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->buslineText:Landroid/widget/AutoCompleteTextView;

    return-object v0
.end method

.method static synthetic access$20(Lcom/teewoo/app/bus/ui/SearchActivity;)I
    .locals 1
    .parameter

    .prologue
    .line 85
    iget v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->fromStationId:I

    return v0
.end method

.method static synthetic access$21(Lcom/teewoo/app/bus/ui/SearchActivity;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 87
    iput p1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->toStationId:I

    return-void
.end method

.method static synthetic access$22(Lcom/teewoo/app/bus/ui/SearchActivity;)I
    .locals 1
    .parameter

    .prologue
    .line 87
    iget v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->toStationId:I

    return v0
.end method

.method static synthetic access$23(Lcom/teewoo/app/bus/ui/SearchActivity;)Lcom/teewoo/app/bus/manager/history/LineHistoryManager;
    .locals 1
    .parameter

    .prologue
    .line 65
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineHistoryManager:Lcom/teewoo/app/bus/manager/history/LineHistoryManager;

    return-object v0
.end method

.method static synthetic access$24(Lcom/teewoo/app/bus/ui/SearchActivity;Landroid/app/ProgressDialog;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 80
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->progressDlg:Landroid/app/ProgressDialog;

    return-void
.end method

.method static synthetic access$25(Lcom/teewoo/app/bus/ui/SearchActivity;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 73
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineDataSet:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$26(Lcom/teewoo/app/bus/ui/SearchActivity;)Landroid/app/ProgressDialog;
    .locals 1
    .parameter

    .prologue
    .line 80
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->progressDlg:Landroid/app/ProgressDialog;

    return-object v0
.end method

.method static synthetic access$27(Lcom/teewoo/app/bus/ui/SearchActivity;)Lcom/teewoo/app/bus/ui/adapter/LineHistoryAdapter;
    .locals 1
    .parameter

    .prologue
    .line 76
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineAdapter:Lcom/teewoo/app/bus/ui/adapter/LineHistoryAdapter;

    return-object v0
.end method

.method static synthetic access$28(Lcom/teewoo/app/bus/ui/SearchActivity;)Lcom/teewoo/app/bus/manager/history/StationHistoryManager;
    .locals 1
    .parameter

    .prologue
    .line 66
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    return-object v0
.end method

.method static synthetic access$29(Lcom/teewoo/app/bus/ui/SearchActivity;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 74
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->staDataSet:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$3(Lcom/teewoo/app/bus/ui/SearchActivity;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 82
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineName:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$30(Lcom/teewoo/app/bus/ui/SearchActivity;)Lcom/teewoo/app/bus/ui/adapter/StationHistoryAdapter;
    .locals 1
    .parameter

    .prologue
    .line 77
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->staAdapter:Lcom/teewoo/app/bus/ui/adapter/StationHistoryAdapter;

    return-object v0
.end method

.method static synthetic access$31(Lcom/teewoo/app/bus/ui/SearchActivity;)Lcom/teewoo/app/bus/manager/history/ChangeHistoryManager;
    .locals 1
    .parameter

    .prologue
    .line 67
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeHistoryManager:Lcom/teewoo/app/bus/manager/history/ChangeHistoryManager;

    return-object v0
.end method

.method static synthetic access$32(Lcom/teewoo/app/bus/ui/SearchActivity;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 75
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeDataSet:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$33(Lcom/teewoo/app/bus/ui/SearchActivity;)Lcom/teewoo/app/bus/ui/adapter/ChangeHistoryAdapter;
    .locals 1
    .parameter

    .prologue
    .line 78
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeAdapter:Lcom/teewoo/app/bus/ui/adapter/ChangeHistoryAdapter;

    return-object v0
.end method

.method static synthetic access$34(Lcom/teewoo/app/bus/ui/SearchActivity;)Landroid/widget/TabHost;
    .locals 1
    .parameter

    .prologue
    .line 49
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    return-object v0
.end method

.method static synthetic access$35(Lcom/teewoo/app/bus/ui/SearchActivity;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 259
    invoke-direct {p0, p1}, Lcom/teewoo/app/bus/ui/SearchActivity;->getSearchHistory(I)V

    return-void
.end method

.method static synthetic access$4(Lcom/teewoo/app/bus/ui/SearchActivity;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 82
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineName:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lcom/teewoo/app/bus/ui/SearchActivity;)Landroid/widget/AutoCompleteTextView;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationText:Landroid/widget/AutoCompleteTextView;

    return-object v0
.end method

.method static synthetic access$6(Lcom/teewoo/app/bus/ui/SearchActivity;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 84
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationName:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$7(Lcom/teewoo/app/bus/ui/SearchActivity;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 84
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationName:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$8(Lcom/teewoo/app/bus/ui/SearchActivity;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 93
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationInfoList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$9(Lcom/teewoo/app/bus/ui/SearchActivity;Ljava/lang/String;Ljava/util/List;)Ljava/lang/String;
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 546
    invoke-direct {p0, p1, p2}, Lcom/teewoo/app/bus/ui/SearchActivity;->getFullNameByAbbr(Ljava/lang/String;Ljava/util/List;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private getFullNameByAbbr(Ljava/lang/String;Ljava/util/List;)Ljava/lang/String;
    .locals 3
    .parameter "abbr"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/autocomplete/AutoItem;",
            ">;)",
            "Ljava/lang/String;"
        }
    .end annotation

    .prologue
    .line 547
    .local p2, list:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/autocomplete/AutoItem;>;"
    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-nez v2, :cond_1

    .line 550
    const/4 v1, 0x0

    :goto_0
    return-object v1

    .line 547
    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/teewoo/app/bus/model/autocomplete/AutoItem;

    .line 548
    .local v0, ai:Lcom/teewoo/app/bus/model/autocomplete/AutoItem;
    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/autocomplete/AutoItem;->getItemAbbr()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 549
    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/autocomplete/AutoItem;->getItemName()Ljava/lang/String;

    move-result-object v1

    goto :goto_0
.end method

.method private getIdfromLocal(Ljava/lang/String;Ljava/util/List;)I
    .locals 4
    .parameter "stationName"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/autocomplete/AutoItem;",
            ">;)I"
        }
    .end annotation

    .prologue
    .line 534
    .local p2, list:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/autocomplete/AutoItem;>;"
    invoke-static {p1}, Lcom/teewoo/app/bus/util/Utils;->isAllLetters(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 535
    invoke-virtual {p1}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    .line 536
    :cond_0
    const/4 v1, -0x1

    .line 537
    .local v1, id:I
    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-nez v3, :cond_2

    .line 540
    return v1

    .line 537
    :cond_2
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/teewoo/app/bus/model/autocomplete/AutoItem;

    .line 538
    .local v0, ai:Lcom/teewoo/app/bus/model/autocomplete/AutoItem;
    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/autocomplete/AutoItem;->getItemAbbr()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_3

    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/autocomplete/AutoItem;->getItemName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 539
    :cond_3
    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/autocomplete/AutoItem;->getId()Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v1

    goto :goto_0
.end method

.method private getSearchHistory(I)V
    .locals 3
    .parameter "flag"

    .prologue
    .line 260
    packed-switch p1, :pswitch_data_0

    .line 316
    :cond_0
    :goto_0
    return-void

    .line 262
    :pswitch_0
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineHistoryManager:Lcom/teewoo/app/bus/manager/history/LineHistoryManager;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/manager/history/LineHistoryManager;->getAll()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineDataSet:Ljava/util/List;

    .line 263
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineDataSet:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 264
    new-instance v0, Lcom/teewoo/app/bus/ui/adapter/LineHistoryAdapter;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->context:Landroid/content/Context;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineDataSet:Ljava/util/List;

    invoke-direct {v0, v1, v2}, Lcom/teewoo/app/bus/ui/adapter/LineHistoryAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineAdapter:Lcom/teewoo/app/bus/ui/adapter/LineHistoryAdapter;

    .line 265
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineHistroyListView:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineAdapter:Lcom/teewoo/app/bus/ui/adapter/LineHistoryAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 266
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineHistroyListView:Landroid/widget/ListView;

    new-instance v1, Lcom/teewoo/app/bus/ui/SearchActivity$3;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/SearchActivity$3;-><init>(Lcom/teewoo/app/bus/ui/SearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    goto :goto_0

    .line 279
    :pswitch_1
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;->getAll()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->staDataSet:Ljava/util/List;

    .line 280
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->staDataSet:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 281
    new-instance v0, Lcom/teewoo/app/bus/ui/adapter/StationHistoryAdapter;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->staDataSet:Ljava/util/List;

    invoke-direct {v0, p0, v1}, Lcom/teewoo/app/bus/ui/adapter/StationHistoryAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->staAdapter:Lcom/teewoo/app/bus/ui/adapter/StationHistoryAdapter;

    .line 282
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationHistoryListView:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->staAdapter:Lcom/teewoo/app/bus/ui/adapter/StationHistoryAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 283
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationHistoryListView:Landroid/widget/ListView;

    new-instance v1, Lcom/teewoo/app/bus/ui/SearchActivity$4;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/SearchActivity$4;-><init>(Lcom/teewoo/app/bus/ui/SearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    goto :goto_0

    .line 297
    :pswitch_2
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeHistoryManager:Lcom/teewoo/app/bus/manager/history/ChangeHistoryManager;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/manager/history/ChangeHistoryManager;->getAll()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeDataSet:Ljava/util/List;

    .line 298
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeDataSet:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 299
    new-instance v0, Lcom/teewoo/app/bus/ui/adapter/ChangeHistoryAdapter;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->context:Landroid/content/Context;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeDataSet:Ljava/util/List;

    invoke-direct {v0, v1, v2}, Lcom/teewoo/app/bus/ui/adapter/ChangeHistoryAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeAdapter:Lcom/teewoo/app/bus/ui/adapter/ChangeHistoryAdapter;

    .line 300
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeHistoryListView:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeAdapter:Lcom/teewoo/app/bus/ui/adapter/ChangeHistoryAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 301
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeHistoryListView:Landroid/widget/ListView;

    new-instance v1, Lcom/teewoo/app/bus/ui/SearchActivity$5;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/SearchActivity$5;-><init>(Lcom/teewoo/app/bus/ui/SearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    goto/16 :goto_0

    .line 260
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method private initAutoCompeleteDataSource()V
    .locals 4

    .prologue
    const v3, 0x109000a

    .line 234
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/SearchActivity;->loadXiaMenData()V

    .line 237
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineStrArray:[Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationStrArray:[Ljava/lang/String;

    if-eqz v0, :cond_0

    .line 238
    new-instance v0, Landroid/widget/ArrayAdapter;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->context:Landroid/content/Context;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineStrArray:[Ljava/lang/String;

    invoke-direct {v0, v1, v3, v2}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;I[Ljava/lang/Object;)V

    sput-object v0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineAutoAdapter:Landroid/widget/ArrayAdapter;

    .line 239
    new-instance v0, Landroid/widget/ArrayAdapter;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->context:Landroid/content/Context;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationStrArray:[Ljava/lang/String;

    invoke-direct {v0, v1, v3, v2}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;I[Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationAutoAdapter:Landroid/widget/ArrayAdapter;

    .line 240
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->buslineText:Landroid/widget/AutoCompleteTextView;

    sget-object v1, Lcom/teewoo/app/bus/ui/SearchActivity;->lineAutoAdapter:Landroid/widget/ArrayAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 241
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationText:Landroid/widget/AutoCompleteTextView;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationAutoAdapter:Landroid/widget/ArrayAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 242
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->fromStationText:Landroid/widget/AutoCompleteTextView;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationAutoAdapter:Landroid/widget/ArrayAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 243
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->toStationText:Landroid/widget/AutoCompleteTextView;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationAutoAdapter:Landroid/widget/ArrayAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 245
    :cond_0
    return-void
.end method

.method private initListener()V
    .locals 2

    .prologue
    .line 222
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->back:Landroid/view/View;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 223
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineSearchButton:Landroid/widget/Button;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 224
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationSearchButton:Landroid/widget/Button;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 225
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeSearchButton:Landroid/widget/Button;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 226
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineHisClear:Landroid/widget/Button;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 227
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationHisClear:Landroid/widget/Button;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 228
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeHisClear:Landroid/widget/Button;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 229
    return-void
.end method

.method private initTabHost()V
    .locals 5

    .prologue
    .line 180
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    invoke-virtual {v0}, Landroid/widget/TabHost;->setup()V

    .line 181
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    const-string v2, "tab1"

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 182
    const v2, 0x7f0a0080

    .line 181
    invoke-virtual {v1, v2}, Landroid/widget/TabHost$TabSpec;->setContent(I)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 182
    const-string v2, "\u7ebf\u8def\u641c\u7d22"

    .line 183
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/SearchActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f020008

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 182
    invoke-virtual {v1, v2, v3}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 181
    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 184
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    const-string v2, "tab2"

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 185
    const v2, 0x7f0a0081

    .line 184
    invoke-virtual {v1, v2}, Landroid/widget/TabHost$TabSpec;->setContent(I)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 185
    const-string v2, "\u7ad9\u70b9\u641c\u7d22"

    .line 186
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/SearchActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f02004d

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 185
    invoke-virtual {v1, v2, v3}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 184
    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 187
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    const-string v2, "tab3"

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 188
    const v2, 0x7f0a0082

    .line 187
    invoke-virtual {v1, v2}, Landroid/widget/TabHost$TabSpec;->setContent(I)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 188
    const-string v2, "\u6362\u4e58\u641c\u7d22"

    .line 189
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/SearchActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f02000b

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 188
    invoke-virtual {v1, v2, v3}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 187
    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 190
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    new-instance v1, Lcom/teewoo/app/bus/ui/SearchActivity$2;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/SearchActivity$2;-><init>(Lcom/teewoo/app/bus/ui/SearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->setOnTabChangedListener(Landroid/widget/TabHost$OnTabChangeListener;)V

    .line 217
    return-void
.end method

.method private loadXiaMenData()V
    .locals 2

    .prologue
    .line 250
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->isSupport:Z

    .line 251
    sget-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->sqliteHepler:Lcom/teewoo/app/bus/db/MySqliteHelper;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/db/MySqliteHelper;->getAllBusLines()[Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineStrArray:[Ljava/lang/String;

    .line 252
    sget-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->sqliteHepler:Lcom/teewoo/app/bus/db/MySqliteHelper;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/db/MySqliteHelper;->getAllBusStations()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationInfoList:Ljava/util/List;

    .line 253
    sget-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->sqliteHepler:Lcom/teewoo/app/bus/db/MySqliteHelper;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationInfoList:Ljava/util/List;

    invoke-virtual {v0, v1}, Lcom/teewoo/app/bus/db/MySqliteHelper;->listToStrArray(Ljava/util/List;)[Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationStrArray:[Ljava/lang/String;

    .line 254
    return-void
.end method


# virtual methods
.method public initialUI()V
    .locals 2

    .prologue
    .line 125
    invoke-super {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;->initialUI()V

    .line 126
    iput-object p0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->context:Landroid/content/Context;

    .line 127
    sget-object v0, Lcom/teewoo/app/bus/ui/SearchActivity;->cityView:Landroid/widget/TextView;

    sget-object v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->currentCityAddress:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 128
    const v0, 0x7f0a007f

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TabHost;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    .line 130
    const v0, 0x7f0a006c

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/AutoCompleteTextView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->buslineText:Landroid/widget/AutoCompleteTextView;

    .line 131
    const v0, 0x7f0a0072

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/AutoCompleteTextView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationText:Landroid/widget/AutoCompleteTextView;

    .line 132
    const v0, 0x7f0a0079

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/AutoCompleteTextView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->fromStationText:Landroid/widget/AutoCompleteTextView;

    .line 133
    const v0, 0x7f0a007a

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/AutoCompleteTextView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->toStationText:Landroid/widget/AutoCompleteTextView;

    .line 135
    const v0, 0x7f0a006d

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineSearchButton:Landroid/widget/Button;

    .line 136
    const v0, 0x7f0a0073

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationSearchButton:Landroid/widget/Button;

    .line 137
    const v0, 0x7f0a007b

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeSearchButton:Landroid/widget/Button;

    .line 139
    const v0, 0x7f0a0070

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineHistroyListView:Landroid/widget/ListView;

    .line 140
    const v0, 0x7f0a0076

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationHistoryListView:Landroid/widget/ListView;

    .line 141
    const v0, 0x7f0a007e

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeHistoryListView:Landroid/widget/ListView;

    .line 143
    new-instance v0, Lcom/teewoo/app/bus/manager/history/LineHistoryManager;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/teewoo/app/bus/manager/history/LineHistoryManager;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineHistoryManager:Lcom/teewoo/app/bus/manager/history/LineHistoryManager;

    .line 144
    new-instance v0, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    .line 145
    new-instance v0, Lcom/teewoo/app/bus/manager/history/ChangeHistoryManager;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/teewoo/app/bus/manager/history/ChangeHistoryManager;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeHistoryManager:Lcom/teewoo/app/bus/manager/history/ChangeHistoryManager;

    .line 147
    const v0, 0x7f0a006f

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->lineHisClear:Landroid/widget/Button;

    .line 148
    const v0, 0x7f0a0075

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->stationHisClear:Landroid/widget/Button;

    .line 149
    const v0, 0x7f0a007d

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->changeHisClear:Landroid/widget/Button;

    .line 150
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 4
    .parameter "savedInstanceState"

    .prologue
    const/16 v2, 0x400

    const/4 v3, 0x1

    .line 154
    invoke-super {p0, p1}, Lcom/teewoo/app/bus/inface/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 156
    invoke-virtual {p0, v3}, Lcom/teewoo/app/bus/ui/SearchActivity;->requestWindowFeature(I)Z

    .line 157
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/SearchActivity;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1, v2, v2}, Landroid/view/Window;->setFlags(II)V

    .line 158
    const v1, 0x7f030023

    invoke-virtual {p0, v1}, Lcom/teewoo/app/bus/ui/SearchActivity;->setContentView(I)V

    .line 160
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/SearchActivity;->initialUI()V

    .line 161
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/SearchActivity;->initTabHost()V

    .line 162
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/SearchActivity;->initListener()V

    .line 164
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/SearchActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "change.back.flag"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 165
    .local v0, tabFlag:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 166
    const-string v1, "STATION"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 167
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    invoke-virtual {v1, v3}, Landroid/widget/TabHost;->setCurrentTab(I)V

    .line 172
    :cond_0
    :goto_0
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/SearchActivity;->initAutoCompeleteDataSource()V

    .line 174
    invoke-direct {p0, v3}, Lcom/teewoo/app/bus/ui/SearchActivity;->getSearchHistory(I)V

    .line 175
    return-void

    .line 168
    :cond_1
    const-string v1, "CHANGE"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 169
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/SearchActivity;->searchTabHost:Landroid/widget/TabHost;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->setCurrentTab(I)V

    goto :goto_0
.end method
